In LINUX, why does mail \ mailx fail to use external SMTP to send mails? Sometimes, to meet certain requirements, a single SMTP server is used as the mail report. Generally, disable the sendmail service on the local machine, modify/etc/mail. rc, and add two lines to specify the external smtp server address and account password. Www.2cto.com # vi/etc/mail. rc set from = demo@qq.com smtp = smtp.qq.com set smt
Configure mailx in Centos to send emails using external smtpConfigure mailx in Centos to use external smtp to send mail to install mailx
yum install mailxConfigure mailx
I recommend 163 mail, of course, QQ mail is also acceptable,
Mailx is a tool used on UNIX systems to process emails. It can be used to send and read emails. Next let's take a look at how to use it to send emails.
Sending format
User@xxx.com of mailx-s subject
If the mail content is stored in the MSG file, you can use the following method:
MAILX is a tool used on UNIX systems to process messages, and it can be used to send and read messages. Let's see how you can use it to send messages.
Send format
Mailx-s Subject User@xxx.com
If the message content is stored in a msg file, you can use the following metho
After installing the Zabbix, set the mail script alarm, the sent alarm content becomes tcmime.1278.1278.1724.bin or att00001.bin.Yum-y Install MAILX Dos2unix//Installation MAILX tools and Dos2unix conversion toolsHere is the script content:[email protected] alertscripts]# cat sendmail.sh#!/bin/bash#export LANG=ZH_CN. UTF-8 //solve the problem of sending the Chinese into garbledFile=/tmp/mailtmp.txtecho "$ $
Mailx is a tool used on UNIX systems to process emails. It can be used to send and read emails. Next let's take a look at how to use it to send emails. The sending format mailx-s subject user@xxx.com
Recently, it is quite new to see that the report generated by the Java program is often sent with the MAIL/MAILX command in the project. The following is a brief introduction to the following MAIL/MAILX command usage. This article has the same effect as the Mail command Example (MAIL/MAILX). Send the printed content as
System:CentOS 6.4 default mail is pointing to MailxCentOS 5 Series is not clearRequired Packages: mailx-12.4.tar.bz2
1. Uninstall SendMail or Postfix
The code is as follows
Copy Code
Yum Remove sendmail-yYum Remove postfix-y
2. Download and install MAILX
The code is as follows
Copy Code
wget ftp://ftp.lt.freebsd.org/pub/FreeBSD/ports/distf
In linux bash, if you use mailx to send Chinese content and display it as an attachment, the mailx version is resolved. Here, mail is directed to the mailx Program # ll/bin/mail lrwxrwxrwx by default. 1 root 5 October 2011/bin/mail-> mailx www.2cto.com # mail-V 12.4 7/29/08
Recently Naigos modified contact, need to send test mail manually Centos (other versions can refer to man mail, man mailx for more information)Create a message content file Mail.txt[email protected] ~]# Touch mail.txt[Email protected] ~]# VI mail.txtSend mail after editing contentMailx-s ' Test a Simple mail ' [email protected] [email protected] to accept email addressIf multiple addresses can be separated
A first delete the system, SendMail#yum Remove Sendmail-yBcd/opt/llwgethttp://sourceforge.net/projects /heirloom/files/latest/download?source=fileslldu-sh Mailx-12.4.tar.bz2tarjxvfmailx-12.4.tar.bz2cd mailx-12.4makemakeinstallucbinstall=/usr/bin/install mailx-Vvi/etc/nail.rc#Only Includeselectedheaderfieldswhenforwardingmessages.fwdretainsubject datefromtoset[ema
There is a mail service function inside the Linux system/var/spool/mailCentOS6, 7 The default is to open the mail service-s Specifies the subject of the message-A file_name adding attachments-R Specify the message source-U Specify the purpose of the messageHello World is the subject of the message this message is sent to root. EoT above, that is, on behalf of the message content input completed.Mail is querying your own message 1 means you need to see the first messageQ is to exit the programInf
In linux, how does one send emails to external mailboxes and use linux? sometimes, if we want to send emails to friends or colleagues, can we send them directly through the command line? How can I use a script to send an email to an external mailbox if I want to monitor the website or system status through linux and au
In linux, how does one send emails to external mailboxes and use linux? Sometimes, if we want to send emails to friends or colleagues, can we send them directly through the command line? How can I use a script to send an email to an external mailbox if I want to monitor the website or system status through linux and au
you want to find it again .. yum remove sendmailyum remove postfix www.2cto.com and then modify/etc/mail. rc: add N lines to specify the external smtp server address and account password. 1 # vi/etc/mail. rc 2 set from = 123456@qq.com3 set smtp = smtp.qq.com 4 set smtp-auth-user = 1234565 set smtp-auth-password = sbsbsbsb6 set smtp-auth = login and then send mail echo through command hello word | mail-s "title" 123456@qq.com, but found that running i
-BERLIN.DE/PUB/GENTOO/DISTFILES/MAILX-12.4.TAR.BZ2// Download mailx-12.4.tar.bz2, more download address http://www.filewatcher.com/m/mailx-12.4.tar.bz2.271482.0.0.html# tar JXVF mailx-12.4.tar.bz2# CD mailx-12.4# make# Make Install Ucbinstall=/usr/bin/install# Whereis
Configure zabbix to send email alerts, and zabbix to send email alerts
Overview
This article describes how to configure zabbix to send an email alarm using external mail. zabbix calls mailx through the configuration file to send emails.
Android sends SMS to intercept the previous send is successful, then send the next SMS 1. Question: encountered in the project such as the following requirements: To send a text message has n, the implementation of a one-piece send and after the last text message sent successfully before sending the next one. for (int
Linux5 call the remote email server to send emails 1. uninstall sendmail and postfixyumerasesendmailyumerasepostfix2. download mailx software: mailx-12.4.tar.bz23.install the software #tarjxvfmailx-12.4.tar.bz2 # cdmailx -...
Linux5 call the remote email server to send an email 1. uninstall sendmail and postfixyum era
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.